package client.presentation;

import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;

import client.controller.Viewpoint3DController;
import client.controller.Virtual3DController;

//Classe mettant en oeuvre la representation 3D d'un point de vue
public class Viewpoint3DPresentation extends TransformGroup{
	
	private Viewpoint3DController controller;
	
	public Viewpoint3DPresentation(Viewpoint3DController c, String vrml) {
		super();
		controller = c;
	}
	
	public Virtual3DController getController() {
		return controller;
	}
	
	public void update() {
		TransformGroup transformGroup = controller.getViewingPlatform().getViewPlatformTransform();
		Transform3D t = new Transform3D();
		this.getTransform(t);
		transformGroup.setTransform(t);
	}

}
